<?php

$nickname =$_GET["nickname"];
$openid =$_GET["openid"];


$mysql = new mysqli(SAE_MYSQL_HOST_M.":".SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS,SAE_MYSQL_DB);


// 清除乱码
$mysql->query('set names utf8');



$sql ="INSERT INTO feili (openid,nickname) VALUES ('$openid','$nickname')";

$result=$mysql->query($sql);
if ($result) {
  echo "success";
}else {
  echo "1111";
}
$mysql->close();














 ?>
